{if count($aStyleReplace)}
<!-- User Generated CSS -->
	<style type="text/css">
{foreach from=$aStyleReplace key=sName item=sLine name=astylereplace}
		{$sName} {ldelim} {$sLine} {rdelim}
{/foreach}
	</style>
	<!-- User Generated CSS //-->
{/if}
{if $sAdvancedStyle}
<style type="text/css">
	{$sAdvancedStyle|strip_tags}
</style>
{/if}